<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改权限组</title>
<link rel="stylesheet" href="/css/modules.css" type="text/css"
			media="screen" />
<link rel="stylesheet" href="/css/modules1.css" type="text/css"
			media="screen" />
		<!--Internet Explorer Trancparency fix-->
		<!--[if IE 6]>
    <script src="/js/ie6pngfix.js"></script>
    <script>
    DD_belatedPNG.fix('#head, a, a span, img, .message p, .click_to_close, .ie6fix');
    </script>
    <![endif]-->	
<SCRIPT language=JavaScript src="/js/FoshanRen.js"></SCRIPT>
<script language="JavaScript">
function checkfm(form){
	if (trim(form.name.value)==""){
		alert("权限组名称不能为空！");
		form.name.focus();
		return false;
	}
	return true;
}
</script>
</head>
<body style="background-color:transparent">
	<h2 class="jquery_tab_title">修改权限组：</h2>
	<div>
<s:form action="PrivilegeGroupManage!update" namespace="/control/main" method="post" onsubmit="return checkfm(this)">
<input type="hidden" name="method" value="edit">
<s:hidden name="groupid"/>
  <table id="noborder_table" width="90%" border="0" cellspacing="0" cellpadding="0">
    <tr> 
      <td align="right"><label>权限组名称</label></td>
      <td><input name="name" size="20" maxlength="20" value="<s:property value='model.name'/>" class="input-small" />
        <font color="#FF0000">*</font></td>
    </tr>
    <tr> 
      <td align="right"><label>选择权限：</label></td>
      <td>
	  <c:forEach items="${privileges}" var="privilege" varStatus="statu">
		<input type="checkbox" name="privileges" value="${privilege.id.model},${privilege.id.privilegeValue}"
		<c:forEach items="${selectprivileges}" var="sp"><c:if test="${sp==privilege}">checked</c:if></c:forEach>
		>${privilege.name}　<c:if test="${statu.count%4==0}"><br></c:if>
	  </c:forEach></td>
	  
    </tr>
    
    <tr> <td></td>
      <td>
          <input type="submit" name="SYS_SET" value=" 确 定 " class="button">
       </td>
    </tr>
  </table>
 
</s:form>
</div>
</body>
</html>